import Vue from "vue"
import Vuex from "vuex"

Vue.use(Vuex)

const store = new Vuex.Store({
    // 仓库配置对象
    state: {
        token: "",
        countcode: 0,
    },
    mutations: {
        dataToken(state, myToken) {
            state.token = myToken;
        },
        countAdd (state, code) {
            state.countcode++;
        }
    },
    actions: {

    },

})

window.store = store;

export default store;

